<?php

class ome_finder_expressfee
{

	var $column_edit = '操作';
	var $column_edit_width = "150";

	public function column_edit($row)
	{
		$finder_id = $_GET['_finder']['finder_id'];

        $expressfeeML = app::get('ome')->model('expressfee');//物流公司
        $expressfee_data=$expressfeeML->getList('*', array('id' => $row['id']),0,1);

		$edit='<a href="index.php?app=ome&ctl=admin_expressfee&act=editexpressfee&id=' . $row['id'] . '&finder_id='.$finder_id.'" target="_blank">编辑</a>';
		if($expressfee_data[0]['status']==0)
		{
			$approve='<a href="index.php?app=ome&ctl=admin_expressfee&act=setApprove&p[0]=' . $row['id'] . '&finder_id='.$finder_id.'" target="download">审核</a>';
		}elseif($expressfee_data[0]['status']==1)
		{
			$unapprove='<a href="index.php?app=ome&ctl=admin_expressfee&act=setunApprove&p[0]=' . $row['id'] . '&finder_id='.$finder_id.'" target="download">弃审</a>';	
		}		
		$addedit='<a href="index.php?app=ome&ctl=admin_expressfee&act=addeditexpressfee&id=' . $row['id'] . '&finder_id='.$finder_id.'" target="_blank">新建类似</a>';
		return $edit.' '.$approve.' '.$unapprove.' '.$addedit;
	}

}